.class public Lcom/uucun/adsdk/b;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Lcom/uucun/adsdk/d;

.field private b:Landroid/content/Context;

.field private c:Z


# direct methods
.method public constructor <init>(Lcom/uucun/adsdk/d;Landroid/content/Context;)V
    .locals 1

    iput-object p1, p0, Lcom/uucun/adsdk/b;->a:Lcom/uucun/adsdk/d;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/uucun/adsdk/b;->c:Z

    iput-object p2, p0, Lcom/uucun/adsdk/b;->b:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/uucun/adsdk/b;->c:Z

    return-void
.end method

.method public run()V
    .locals 4

    new-instance v0, Lcom/uucun/adsdk/b/g;

    iget-object v1, p0, Lcom/uucun/adsdk/b;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/uucun/adsdk/b/g;-><init>(Landroid/content/Context;)V

    :goto_0
    iget-boolean v1, p0, Lcom/uucun/adsdk/b;->c:Z

    if-nez v1, :cond_0

    invoke-virtual {v0}, Lcom/uucun/adsdk/b/g;->b()V

    :goto_1
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/uucun/adsdk/b/g;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1

    invoke-static {}, Lcom/uucun/adsdk/d;->c()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\u6355\u6349\u5230\u5f97\u5f02\u5e38:\n  "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/uucun/adsdk/b/h;->b(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/uucun/adsdk/b;->a:Lcom/uucun/adsdk/d;

    iget-object v2, p0, Lcom/uucun/adsdk/b;->b:Landroid/content/Context;

    invoke-static {v0, v2, v1}, Lcom/uucun/adsdk/d;->a(Lcom/uucun/adsdk/d;Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    const-wide/16 v1, 0xc8

    :try_start_0
    invoke-static {v1, v2}, Lcom/uucun/adsdk/b;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0
.end method
